STEP 3: Now let's create a variable to store the area of the rectangle.

  • In the LOGIC tab, click on .
  • Drag out Integer Variable. Drop it on the line right below rectangle_height.
  • Change its name to rectangle_area.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)